<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="keywords" content="">
  <meta name="description" content="">
  <meta name="author" content="">
  <title>集团电商</title>
  <!--common-->
  <link href="__CSS__/bootstrap.min.css" rel="stylesheet">
  <link href="__CSS__/editpassword.css" rel="stylesheet">
  <script src="__JS__/jquery.js"></script>
  <script src="__JS__/Validform_v5.3.2_min.js"></script>
</head>
<body class="sticky-header">
    <div class="container-fluid" style="padding-top: 10px;">
        <form action="{:url('editpassword')}" method="post" role="form" class="form-horizontal" id="registerform">
           <input type="hidden" value="{$id}" name="id">
         <div class="form-group">
             <label class="control-label col-sm-2" for="inputEmail3">原密码</label>
             <div class="col-sm-10  input-group">
                 <input type="password" class="form-control" name="old" id="inputEmail3">
             </div>
         </div>
           <div class="form-group">
             <label class="control-label col-sm-2" for="inputEmail3">新密码</label>
             <div class="col-sm-10  input-group">
                 <input type="password" class="form-control" name="password" id="inputEmail3" plugin="passwordStrength"  datatype="*6-18" errormsg="密码至少6个字符,最多18个字符！">
                  <span class="input-group-addon Validform_checktip"></span>
             </div>             
         </div>
           <div class="form-group">
             <label class="control-label col-sm-2" for="inputEmail3"></label>
               <div class="col-sm-10">
                 <div class="passwordStrength">密码强度： <span>弱</span><span>中</span><span class="last">强</span></div>
             </div>
         </div>
        <div class="form-group">
             <label class="control-label col-sm-2" for="inputEmail4">确认密码</label>
             <div class="col-sm-10 input-group">
                 <input type="password" class="form-control" name="repassword" id="inputEmail4" recheck="password"  datatype="*6-18" errormsg="两次输入的密码不一致！">
                 <span class="input-group-addon Validform_checktip"></span>
             </div>
        </div>
         <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                {notempty name="info.id"}
                    <input type="hidden" name="id" value="{$info.id}">
                {/notempty}
                <button class="btn btn-primary" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            </div>
         </div>
     </form>
        <!--body wrapper end-->
</div>
     <script src="__JS__/passwordStrength.js"></script>
    <script type="text/javascript">
$(function(){
	//$(".registerform").Validform();  //就这一行代码！;
		
	$("#registerform").Validform({
		tiptype:3,
		usePlugin:{
			passwordstrength:{
				minLen:6,
				maxLen:18
			}
		}
	});
})
</script>
</body>
</html>